<template>
  <div id="app">
    <div class="app-header">
      <img alt="Vue logo" src="./assets/logo.png">
      <a href="/">导航</a>
      <router-link to="/alarm/manage">报警管理</router-link>
      <router-link to="/alarm/statistics">统计分析</router-link>
      <span style="float:right;">admin</span>
    </div>
    <div class="app-view">
      <router-view ></router-view>
    </div>
  </div>
</template>

<script>

export default {
  name: 'app',
  components: {
  }
}
</script>

<style>
*{
  box-sizing: border-box;
}
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  width: 100%;
  height: 100%;
}
.app-header {
  width: 100%;
  height: 50px;
  line-height: 50px;
  padding: 0 20px;
}
.app-header a {
  display: inline;
  margin-left: 50px;
  color: #2c3e50;
  font-size: 18px;
  text-decoration:none;
}
.app-view {
  width: 100%;
  height: calc(100% - 50px);
}
.bs-content {
  overflow: auto;
  display: flex;
  flex: 1;
  padding: 16px 0;
}

.bs-left {
  flex: 0 0 272px;
  margin-right: 16px;
  overflow: hidden;
  min-height: 670px;
  padding: 8px;
}

.bs-right {
  flex: 0 0 300px;
}

.bs-main {
  flex: 1;
  display: flex;
  min-height: 670px;
}
</style>
